package name.jiaosha.air.system.domain;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ali8ba.Domain;

@Entity
@Table(name = "sys_area")
public class Area extends Domain {

	private static final long serialVersionUID = 3910583931293137778L;

	private Integer id;
	/**
	 *省
	 */
	private String province;
	/**
	 * 省的拼音
	 */
	private String pinyin;
	/**
	 * 城市
	 */
	private String city;
	/**
	 * 区
	 */
	private String district;
	/**
	 * 邮编
	 */
	private String postcode;
	/**
	 * 省id
	 */
	private Integer provinceId;
	/**
	 * 城市id
	 */
	private Integer cityId;

	public Area() {

	}

	@Id()
	@Column(name = "id", unique = true, nullable = false, precision = 11)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Basic()
	@Column(name = "province", length = 20)
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Basic()
	@Column(name = "pinyin", length = 20)
	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	@Basic()
	@Column(name = "city", length = 20)
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Basic()
	@Column(name = "district", length = 20)
	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	@Basic()
	@Column(name = "postcode", length = 20)
	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	@Basic()
	@Column(name = "provinceId")
	public Integer getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(Integer provinceId) {
		this.provinceId = provinceId;
	}

	@Basic()
	@Column(name = "cityId")
	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

}
